/*
 *  Copyright 2023 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import (reference) '../../../styles/variables.less';

.task-feed-card-v1 {
  padding: 18px 12px;

  &.active {
    border-left: 4px solid @info-color;
  }

  .task-feed-body {
    padding-left: 1.5rem;
  }
  .assignee-item {
    margin: 0;
    margin-right: 4px;
  }
}

.task-feed-header {
  overflow: hidden;
  text-overflow: ellipsis;
  width: 98%;
  word-wrap: break-word;
  white-space: nowrap;
}
.task-feed-card-v1-new {
  padding: 20px;
  background: @grey-9;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 0.5px solid #eaecf5;

  &.active {
    border-left: 4px solid @primary-color;
    background: @primary-50;
  }
  .task-created-by-text {
    color: @primary-heading-color;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
  }
  .task-timestamp-text {
    color: @grey-500;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
  }
  .tags-card-container {
    border-radius: 12px;
    border: none;
  }
  .task-feed-card-footer {
    margin-top: 2px;
    .posts-length {
      color: @grey-13;
      font-size: 12px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
    }
    .action-buttons {
      display: flex;
      gap: 8px;
    }

    .task-card-approve-btn {
      background-color: transparent;
      color: @primary-heading-color;
      border-radius: 8px;
      font-size: 12px;
      font-style: normal;
      font-weight: 500;
      line-height: 20px;
      letter-spacing: 0.1px;
      padding: 8px;
      border: none;
    }

    .task-card-reject-btn {
      background-color: transparent;
      color: #e31b54;
      border-radius: 8px;
      font-size: 12px;
      font-style: normal;
      font-weight: 500;
      line-height: 20px;
      letter-spacing: 0.1px;
      padding: 8px 16px 8px 8px;
      border: none;
    }

    .approve-btn .anticon,
    .reject-btn .anticon {
      font-size: 14px;
    }
  }

  .assignee-item {
    margin: 0;
    margin-right: 4px;
  }
  .task-body {
    padding: 0 @size-sm;
    background-color: @grey-9;
    border-radius: @size-sm;
  }
}
.no-bg-border {
  background: @white;
  border: none;
  padding: 10px;
}
.text-wrap {
  word-wrap: break-word;
  white-space: normal;
}
.task-feed-desc-diff {
  background-color: @white;
  margin-top: 14px;
}
.task-card-assignee {
  margin-left: 18px;
}
